-- GENERATED SPELL FOR [Bhag'thera] --


function spell0_728(pUnit, Event) --@Pierce Armor,n/a--
pUnit:FullCastSpellOnTarget(6016,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_728', 20000, 1)
end

function spell1_728(pUnit, Event) --@Rend Flesh,n/a--
pUnit:FullCastSpellOnTarget(3147,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_728', 12000, 1)
end

function Sorts_728(pUnit, Event)
local choix_sorts_728 = math.random(0, 1)
if choix_sorts_728 == 0 then
pUnit:RegisterEvent('spell0_728', 1, 1)
end
if choix_sorts_728 == 1 then
pUnit:RegisterEvent('spell1_728', 1, 1)
end
end

function mob728_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_728', math.random(1500, 3000), 1)
end

function mob728_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob728_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob728_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(728, 1, 'mob728_Action')
RegisterUnitEvent(728, 2, 'mob728_Leave')
RegisterUnitEvent(728, 3, 'mob728_Kill')
RegisterUnitEvent(728, 4, 'mob728_Die')
